import request from '@/utils/request'

//作业章节列表
export function listTaskChapter(data) {
  return request({
    url: '/task/library/listTaskChapter',
    method: 'post',
    data,
  })
}

//获取所有作业章节
export function listAllTaskChapter(data) {
  return request({
    url: '/task/library/listAllTaskChapter',
    method: 'post',
    data,
  })
}

//作业章节新增
export function saveTaskChapter(data) {
  return request({
    url: '/task/library/saveTaskChapter',
    method: 'post',
    data,
  })
}

//作业章节删除
export function deleteTaskChapter(data) {
  return request({
    url: '/task/library/deleteTaskChapter',
    method: 'post',
    data,
  })
}

//作业章节修改
export function updateTaskChapter(data) {
  return request({
    url: '/task/library/updateTaskChapter',
    method: 'post',
    data,
  })
}

//理论题库列表
export function listTaskTheoryLibrary(data) {
  return request({
    url: '/task/library/listTaskTheoryLibrary',
    method: 'post',
    data,
  })
}

//在线录入理论题目
export function onLineInputTaskTheory(data) {
  return request({
    url: '/task/library/onLineInputTaskTheory',
    method: 'post',
    data,
  })
}

//理论题库修改
export function updateTaskTheory(data) {
  return request({
    url: '/task/library/updateTaskTheory',
    method: 'post',
    data,
  })
}

//理论题库删除
export function deleteTaskTheoryByTheoryIds(data) {
  return request({
    url: '/task/library/deleteTaskTheoryByTheoryIds',
    method: 'post',
    data,
  })
}

//通过章节ID批量删除理论作业
export function deleteTaskTheoryByChapterIds(data) {
  return request({
    url: '/task/library/deleteTaskTheoryByChapterIds',
    method: 'post',
    data,
  })
}

//理论作业随机生成
export function randomCreateTheory(data) {
  return request({
    url: '/task/library/randomCreateTheory',
    method: 'post',
    data,
  })
}

//获取所有专业
export function listAllMajor(data) {
  return request({
    url: '/task/manage/listAllMajor',
    method: 'post',
    data,
  })
}

//课程列表
export function listStage(data) {
  return request({
    url: '/task/manage/listStage',
    method: 'post',
    data,
  })
}

//作业布置安排新增
export function saveTaskLayout(data) {
  return request({
    url: '/task/manage/saveTaskLayout',
    method: 'post',
    data,
  })
}

//理论作业模板所有列表
export function listAllTheoryTemplate(data) {
  return request({
    url: '/task/manage/listAllTheoryTemplate',
    method: 'post',
    data,
  })
}

//所有课程列表
export function listAllStage(data) {
  return request({
    url: '/task/manage/listAllStage',
    method: 'post',
    data,
  })
}

//理论作业试题内容新增
export function saveTheoryContent(data) {
  return request({
    url: '/task/manage/saveTheoryContent',
    method: 'post',
    data,
  })
}

//获取班级
export function getClazzListVoByCollageId(data) {
  return request({
    url: '/student/clazz/getClazzListVoByCollageId',
    method: 'post',
    data,
  })
}

//获取所有标签
export function listAllTaskLabel(data) {
  return request({
    url: '/task/label/listAllTaskLabel',
    method: 'post',
    data,
  })
}
